package fhffm.DagmAI.operators;

import java.util.LinkedList;
import java.util.List;

import fhffm.DagmAI.util.GlobalRandom;

public class ParentSelection {
		public static List<Object> selectParents(List<Object> generation) {
			List<Object> parents = new LinkedList<>();
			parents.add(selectParent(generation));
			parents.add(selectParent(generation));
			return parents;
		}
		
		private static Object selectParent(List<Object> generation){
			return generation.get(GlobalRandom.random.nextInt(generation.size()));
		}
}
